using System;


namespace Commons.Models.Functions
{
	[Serializable]
	public abstract class AbstractFunction<T, R> : IFunction<T, R>
	{
		public string Var { get; protected set; }

		public AbstractFunction(string variable)
		{
			this.Var = variable;
		}

		public abstract R Eval(T x);
	}
}

